<?php
class MemberAction extends CommonAction{
  public function _initialize()
  {
    parent::_initialize();
    $this->db_obj=D('Member');
    //echo "aaa";
  }
  //会员列表
    public function memberList()
    {
        $this->display();
    }
  public function getList()
  {
        $this->display();
  }
  
  //添加会员界面
  public function memberAdd()
  {
    $this->display();
  }
  //会员添加
    public function save()
  {
    if(!$this->db_obj->create())
    {
            $this->error($this->db_obj->getError());
    }
    else
  {
      if($this->db_obj->add())
        {
            $this->admin_log("添加会员");
            $this->assign('jumpUrl','__URL__/memberList');
        $this->success("添加成功");
        }
            else
            {
                $this->success("添加失败");
            }
    
    
  }
}
}

?>